package org.aplikator.client.data;

import java.io.Serializable;

import org.aplikator.client.descriptor.ViewDTO;

@SuppressWarnings("serial")
public class ContainerNode implements Serializable {
    private ViewDTO view;
    private Record original;
    private Record edited;
    private Operation operation;

    @SuppressWarnings("unused")
    private ContainerNode() {
    }

    public ContainerNode(ViewDTO view, Record original, Record edited, Operation operation) {
        this.view = view;
        this.original = original;
        this.edited = edited;
        this.operation = operation;
    }

    public ViewDTO getView() {
        return view;
    }

    public Record getOriginal() {
        return original;
    }

    public Record getEdited() {
        return edited;
    }

    public Operation getOperation() {
        return operation;
    }

    public void setView(ViewDTO view) {
        this.view = view;
    }

    public void setOriginal(Record original) {
        this.original = original;
    }

    public void setEdited(Record edited) {
        this.edited = edited;
    }

    public void setOperation(Operation operation) {
        this.operation = operation;
    }

}
